/*
 * ota_updater.h
 *
 *  Created on: 2016-7-15
 *      Author: duanlian01
 */

#ifndef SILVERFERNPWROTAUPDATER_H_
#define SILVERFERNPWROTAUPDATER_H_
#include "IOtaUpdater.h"
#define OTA_IMAGE_BAD_SIZE  1
#define OTA_UPDATE_CRC_FAIL 2
#ifdef __cplusplus
extern "C" {
#endif
struct k64f_ota_update_context{
	    void *address;
	    struct module_info info;
};
int k64f_notify_data_begin();
int k64f_notify_meta_data(void *cxt, struct package_meta_data *meta);
int k64f_notify_module_data(void *cxt, unsigned int offset, unsigned char *data, unsigned int size);
int k64f_notify_data_end();

int k64f_ota_update_image_begin();
int k64f_ota_update_image();
int k64f_ota_update_image_end();
#ifdef __cplusplus
}
#endif
#endif /* SILVERFERNPWROTAUPDATER_H_ */
